import request from '@/utils/request'
// 个人档案模块

//创建服务对象个人档案POST 
export function createPersonalFile(parameter){
	return request({
		url:'/api/servicePerson/createPersonalFile',
		method:'post',
		data: parameter
	})
}

//获取服务对象个人档案详情GET 
export function getPersonalDetail(id){
	return request({
		url:`/api/servicePerson/detail/${id}`,
		method:'get',
	})
}

//获取当前机构档案列表GET 
export function servicePersonList(){
	return request({
		url:'/api/servicePerson/list',
		method:'get',
	})
}

//移除服务对象个人档案到回收站GET 
export function removePersonalFile(id){
	return request({
		url:`/api/servicePerson/remove/${id}`,
		method:'get',
	})
}

//更新服务对象个人档案POST 
export function updatePersonalFile(parameter){
	return request({
		url:'/api/servicePerson/updatePersonalFile',
		method:'post',
		data: parameter
	})
}